package com.qbccn.bbs.mapper;

import com.qbccn.bbs.domain.BbsUserSignSub;
import org.apache.ibatis.annotations.Param;

/**
 * @author linke
 * @date 2020/6/14 1:06
 * @description
 */
public interface BbsUserSignSubMapper {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(BbsUserSignSub record);

    BbsUserSignSub selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BbsUserSignSub record);

    int updateByPrimaryKey(BbsUserSignSub record);

    BbsUserSignSub getUserSignSub(@Param("username") String username);

    void updateSuccessionDayToZero(@Param("username") String username);

    void updateSignDay(@Param("username") String username, @Param("day") int day);
}
